<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新用户注册</title>
<link href="/medicalManager/css/base.css" rev="stylesheet" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validators/form-validator.js"></script>
<s:include value="/js/validators/user.jsp"></s:include>
</head>
<body>
  <div>
    <%@ include file="/WEB-INF/views/decorators/top_menu.jsp" %>
  </div>
  
  <div style="margin-left: 300px; height: 400px;">
    <div style="height:24px;font-weight:bold">新用户注册</div>
    <div style="height:24px;color:red" align="left" id="errorInfo">${failInfo } ${param.failInfo}</div>
    <br>
    <s:form id="submitForm" action="/user/regist.action" method="post" theme="simple">
    <div>
    	<div><s:text name="用户名"/>：&nbsp;&nbsp;<input maxlength="25" type="text" name="user.userName" value="<s:property value='user.userName' />" /><span></span></div>
        <div><s:text name="电子邮件"/>：<input maxlength="25" type="text" name="user.email" value="<s:property value='user.email' />" /><span></span></div>
        <div><s:text name="设置密码"/>：<input maxlength="15" type="password" name="user.password" value="<s:property value='user.password' />" /><span></span></div>
        <div><s:text name="确认密码"/>：<input maxlength="15" type="password" name="user.repassword" value="<s:property value='user.repassword' />" /><span></span></div>
        <div><s:text name="手机"/>：&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="13" type="text" name="user.mobile" value="<s:property value='user.mobile' />" /><span></span></div>
        <div><s:text name="传真"/>：&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="25" type="text" name="user.fax" value="<s:property value='user.fax' />" /><span></span></div>
        <div><s:text name="公司"/>：&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="25" type="text" name="user.companyName" value="<s:property value='user.companyName' />" /><span></span></div>
        <div>
        	<s:text name="类型"/>：&nbsp;&nbsp;&nbsp;
            <select name="user.type" >
                <option value="2" selected="selected">试用用户</option>
            </select>
            <span></span> 
        </div>
        <div><s:text name="国家"/>：&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="25" type="text" name="user.country" value="<s:property value='user.country' />" /><span></span></div>
        <div><s:text name="省"/>：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="25" type="text" name="user.province" value="<s:property value='user.province' />" /><span></span></div>
        <div><s:text name="市"/>：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="25" type="text" name="user.city" value="<s:property value='user.city' />" /><span></span></div>
        <div><s:text name="地址"/>：&nbsp;&nbsp;&nbsp;&nbsp;<input maxlength="50" type="text" name="user.address" value="<s:property value='user.address' />" style="width: 450px;"><span></span></div>
        <div><input style="float:left" type="submit" value="确认" onclick="return doValidate(event);"/></div>
        <div><input type="button" value="取消" onclick="javascript:history.back(-1);"/></div>
    </div>
    </s:form>
  </div>
  
  <div align="center">
    <%@ include file="/WEB-INF/views/decorators/footer.jsp" %>
  </div>
</body>
</html>